﻿using Core.Toolkit.Core.Entitys;
using System;
using System.ComponentModel.DataAnnotations;

namespace Core.SimpleTemp.Entitys
{
    /// <summary>
    /// 功能菜单实体
    /// </summary>
    public class SysMenu : Entity
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int SerialNumber { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 菜单编码
        /// </summary>
        [StringLength(50)]
        public string Code { get; set; }

        /// <summary>
        /// 菜单地址
        /// </summary>
        [StringLength(200)]
        public string Url { get; set; }

        /// <summary>
        /// 类型：0导航菜单；1操作按钮。
        /// </summary>
        public int Type { get; set; }
        [StringLength(20)]
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 菜单备注
        /// </summary>
        [StringLength(200)]
        public string Remarks { get; set; }




        /// <summary>
        /// 集团具有权限
        /// </summary>
        public bool IsGroup { get; set; }
        /// <summary>
        /// 工厂具有权限
        /// </summary>
        public bool IsFactory { get; set; }
        /// <summary>
        /// 是否共享
        /// </summary>
        public bool IsShare { get; set; }
    }
}
